package com.tc.quartz.frame.common;

import javax.servlet.http.HttpServletRequest;

/**
 * PaymentQuartz
 * @author yongjin.ye
 */
public class ParamUtil {
	
	public static int getInt(HttpServletRequest request, String paramName, int defVal){
		String val = request.getParameter(paramName);
		try {
			return Integer.parseInt(val);
		} catch (Exception e) {}
		return defVal;
	}

}
